package cn.xiaobai.plugin;


import cn.xiaobai.core.domain.PluginConfig;
import cn.xiaobai.core.domain.module.InConf;
import cn.xiaobai.core.domain.schedule.TaskExecutorProcessor;
import com.fasterxml.jackson.databind.JsonNode;

import java.lang.reflect.Executable;
import java.util.List;

/**
 * @Author yangdaji
 * @Date 2023/12/6
 * @PackageName cn.xiaobai.plugin
 * @ClassName Demo
 */
public class Demo implements InConf {

    public static List<PluginConfig> getConfig() {
        // 给页面使用
        return null;
    }

    @Override
    public void init(JsonNode config) throws RuntimeException {
        System.out.println("初始化");
    }

    @Override
    public void start(TaskExecutorProcessor taskExecutorProcessor) {
        System.out.println("调用: demo test");
    }

    @Override
    public void stop() {

    }

    @Override
    public boolean isCanceld() {
        return false;
    }

    @Override
    public void uninit() {

    }
}
